<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.pageInfoUtil }" var="pageInfoUtil"/>
<c:set value="${requestScope.response.data.list }" var="list"/>
<!DOCTYPE html>
<html>
	<head>
		<title>${requestScope.city }的景点列表 - 旅游网-前台</title>
		<%@ include file="/common/include/head_title.jsp" %>
		<link href="${rootPath}/css/styleResults.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<%@ include file="/common/include/head_header.jsp" %>
		<div class="center_content">
			<div class="left_content">
				<div class="title">你搜索的结果是</div>
				<c:forEach items="${list }" var="listTemp" varStatus="stat">
					<div class="feat_prod_box">
						<div class="prod_img">
							<a href="${rootPath }/scenicspotInfo.htm?id=${listTemp.id}" target="_blank">
								<img src="${rootPath }/${listTemp.picture}" alt="" title="" border="0">
							</a>
						</div>
						<div class="prod_det_box">
							<div class="box_top"></div>
							<div class="box_center">
								<div class="prod_title">${stat.count}、${listTemp.name }</div>
								<p class="details">${fn:substring(listTemp.introduce,0,100) }...</p>
								<a href="${rootPath }/scenicspotInfo.htm?id=${listTemp.id}" class="more" target="_blank">- 更多 -</a>
								<div class="clear"></div>
							</div>
							<div class="box_bottom"></div>
						</div>
						<div class="clear"></div>
					</div>
				</c:forEach>
				<div class="pagination">
					<form id="pageForm" action="${rootPath }/scenicspotList.htm"
						method="post" class="form-inline">
						<!-- 设置一些参数 -->
						<input type="hidden" name="keyword" value="${requestScope.keyword }">
						<input type="hidden" name="st" value="${requestScope.st }">
						<input type="hidden" name="ed" value="${requestScope.ed }">

						<input type="hidden" name="city" value="${requestScope.city}"/>
						<input type="hidden" name="keyword" value="${requestScope.keyword}"/>
						
						<a href="#" class="page-link" onclick="return pageFormSubmit('pageForm', 'currentPage', '1', 'pageSize','${pageInfoUtil.pageSize}')">
							<span>首页</span>
						</a>
						<a href="#" class="page-link" onclick="return pageFormSubmit('pageForm', 'currentPage', '${pageInfoUtil.prePage}', 'pageSize','${pageInfoUtil.pageSize}')">
							<span>上一页</span>
						</a>
						<a href="#" class="page-link" onclick="return pageFormSubmit('pageForm', 'currentPage', '${pageInfoUtil.nextPage}', 'pageSize','${pageInfoUtil.pageSize}')">
							<span>下一页</span>
						</a>
						<a href="#" class="page-link" onclick="return pageFormSubmit('pageForm', 'currentPage', '${pageInfoUtil.totalPage}', 'pageSize','${pageInfoUtil.pageSize}')">
							<span>尾页</span>
						</a>
						共${pageInfoUtil.totalRecord }条,共${pageInfoUtil.totalPage}页
							第<input type="text" id="currentPage" name="currentPage" class="form-control" value="${pageInfoUtil.currentPage }"  size="5" maxlength="5"/>页
							<input type="text" id="pageSize" name="pageSize" class="form-control" value="${pageInfoUtil.pageSize }" size="5" maxlength="5"/>
						<input type="submit" value="GO" class="form-control btn btn-primary"/>
					</form>
				</div>
				<div class="clear"></div>
			</div>
			<!--end of left content-->
		</div>
		<%@ include file="/common/include/head_footer.jsp" %>
	</body>
</html>